package com.ly.video.api.video.mapper;

import com.ly.video.api.video.entity.VideoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface VideoMapper {

    /**
     * 添加视频
     */
    Integer insertVideo(VideoEntity entity);

    /**
     * 分页查询
     */
    List<VideoEntity> getVideoByPage(@Param("page") int page, @Param("size")int size);
}
